﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="right.ascx.cs" Inherits="CXedu.WebSite.UC.right" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="CXedu.Model" %>
                <div class="pub">
                    <div class="pub_title clearfix">
                        <span class="fl fontB">最新公告</span><span class="fr"><a href="/list.aspx?c=14" target="_blank" title="更多">&gt;更多</a></span>
                    </div>
                    <div class="not_list">
                        <ul>
                            <% 
                                foreach (News info in gonggaolist)
                                { 
                            %>
                            <li>·<a href="/detail.aspx?id=<%=info.Id %>" target="_blank" class="blue" title="<%=info.Title%>"><%=Ajeelee.Core.Utils.Function.CutStringIn(info.Title, 0, 34)%></a></li>
                            <%    
                                }  
                            %>
                        </ul>
                    </div>
                </div>
                <%
                    //资格证书的页面：右边栏：教育资讯
                    if (CurrentNavType == CXedu.WebSite.NavigationType.List_7 || CurrentNavType == CXedu.WebSite.NavigationType.AdultEdu)
                    { 
                %>
                <div class="pub">
                    <div class="pub_title clearfix">
                        <span class="fl fontB">教育资讯</span><span class="fr"><a href="/list.aspx?c=1" target="_blank" title="更多">&gt;更多</a></span>
                    </div>
                    <div class="not_list">
                        <ul>
                            <% 
                                foreach (News info in mingshiFClist)
                                {
                            %>
                            <li>·<a href="/detail.aspx?id=<%=info.Id %>" target="_blank" class="blue" title="<%=info.Title%>"><%=Ajeelee.Core.Utils.Function.CutStringIn(info.Title, 0, 34)%></a></li>
                            <% 
                                }        
                            %>
                        </ul>
                    </div>
                </div>
                <% 
                    }
                    //教育资讯的页面：右边栏政策法规
                    else if (CurrentNavType == CXedu.WebSite.NavigationType.List_1)
                    {
                %>
                <div class="pub">
                    <div class="pub_title clearfix">
                        <span class="fl fontB">政策法规</span><span class="fr"><a href="/list.aspx?c=9" target="_blank" title="更多">&gt;更多</a></span>
                    </div>
                    <div class="not_list">
                        <ul>
                            <% 
                                foreach (News info in mingshiFClist)
                                {
                            %>
                            <li>·<a href="/detail.aspx?id=<%=info.Id %>" target="_blank" class="blue" title="<%=info.Title%>"><%=Ajeelee.Core.Utils.Function.CutStringIn(info.Title, 0, 34)%></a></li>
                            <% 
                                }        
                            %>
                        </ul>
                    </div>
                </div>
                <%
                    }
                    //关于我们、报名联系的页面：右边栏的名师风采都不要了
                    else if (CurrentNavType != CXedu.WebSite.NavigationType.About && CurrentNavType != CXedu.WebSite.NavigationType.Contact)
                    {
                %>
                <div class="pub">
                    <div class="pub_title clearfix">
                        <span class="fl fontB">名师风采</span><span class="fr"><a href="/list.aspx?c=20" target="_blank" title="更多">&gt;更多</a></span>
                    </div>
                    <div class="fam_fc">
                        <% 
                            foreach (News info in mingshiFClist)
                            {
                        %>
                        <dl>
                            <dt>
                                <a href="/detail.aspx?id=<%=info.Id %>" target="_blank" title="<%=info.Title%>"><img src="<%=info.Pic %>" alt="" width="73" height="110" /></a>
                            </dt>
                            <dd><strong><%=info.Title%></strong></dd>
                            <dd><%=Ajeelee.Core.Utils.Function.CutStringIn(info.Syno, 0, 84) %><a href="/detail.aspx?id=<%=info.Id %>" target="_blank" class="red">[详情]</a></dd>
                        </dl>
                        <% 
                            }        
                        %>
                    </div>
                </div>
                <%
                    }
                %>
                <div class="pub">
                    <iframe width="100%" height="380" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=380&fansRow=2&ptype=0&speed=0&skin=1&isTitle=0&noborder=1&isWeibo=1&isFans=0&uid=3516314690&verifier=c77ee03c&dpc=1"></iframe>                </div>